import { defaultRuleOptions } from '@VEC/global.ts'
import uniqueId from '@VEC/uniqueId.ts'


const type = 'Layout-Box';

export default defaultRuleOptions({
    icon: '&#xe6b6;',
    name: '容器',
    type: type,
    Tools: {
        // Delete: false,
        // Copy: false,
        Hide: false,
    },
    DragType: 'Box',
    rule() {
        return {
            type: type,
            field: uniqueId(),
            title: '容器',
            props: {},
            codes: {},
            style: {},
            events: {},
            slots: { default: [] },
        }
    },
    props() {
        return [
            'Field',
            'Title',
            {
                type: 'Group',
                props: {
                    title: '动作',
                },
                children: [
                    {
                        type: "Action", props: {
                            EventList: [
                                { label: '点击事件', value: 'click' },
                            ]
                        }
                    }
                ]
            },
        ]
    },
})
